package com.romotc.qqrobot.bean;

import java.util.Date;

import com.romotc.qqrobot.webqq.util.QQRandomUtil;

public class QQNum {

	private String qqNum;
	private String pswd;
	private String skey;
	
	public QQNum(String qqNum, String pswd, String skey) {
		this.qqNum = qqNum;
		this.pswd = pswd;
		this.skey = skey;
	}
	
	public QQNum()
	{
		
	}
	
	public QQLogedin buildQQLogedin(QQLogedin qLogedin) {
		//ptui_loginuin=97190865; pt2gguin=o0097190865; uin=o0097190865; skey=@XgPNH1Y3A; ptisp=cnc; show_id=; pgv_pvid=1986132759; pgv_info=ssid=s2408206599
		String cookieString = "ptui_loginuin=" + qqNum 
				+ "; pt2gguin=o" + qqNum
				+ "; uin=o" + qqNum
				+ "; skey=" + this.skey
				+ "; ptisp=cnc; show_id="
				+ "; pgv_pvid=" + QQRandomUtil.getRandomPvid()
				+ "; pgv_info=ssid=" + QQRandomUtil.getRandomSSid();
		qLogedin.setCookieString(cookieString);
		
		return qLogedin;
	}
	/**
	 * 登入时间
	 */
	private Date loginDate;
	
	public String getQqNum() {
		return qqNum;
	}
	public void setQqNum(String qqNum) {
		this.qqNum = qqNum;
	}
	public String getPswd() {
		return pswd;
	}
	public void setPswd(String pswd) {
		this.pswd = pswd;
	}
	public String getSkey() {
		return skey;
	}
	public void setSkey(String skey) {
		this.skey = skey;
	}
	public Date getLoginDate() {
		return loginDate;
	}
	public void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}

	
	
}
